package com.scsj.cloud.producer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/** 
 * @Description:  RabbitMQ消息生产模块项目启动类
 * @author        caoxiubin
 * @date          2018年5月4日 下午2:29:12 
*/
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan
public class ProducerServerApplication {

    public static void main(String[] args) {
    	
        SpringApplication.run(ProducerServerApplication.class, args);
    }
    
    @Bean
	@LoadBalanced
	RestTemplate restTemplate() {
		return new RestTemplate();
	}
    
    
}
